<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>数组遍历</title>
    <script type="text/javascript">
        var lst=["audi","bmw","volvo",10,true,1.1]
        console.log("数组长度为"+lst.length)
        //数组遍历
        for ( i = 0; i < lst.length; i++) {
            console.log(lst[i]) //会自动换行
        }
    </script>
</head>
<body>

</body>
</html>